<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateYsRechargeAmountTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('recharge_amount', function(Blueprint $table)
		{
			$table->increments('id')->comment('主键自增');
			$table->float('amount')->comment('充值金额');
			$table->integer('coin_count')->comment('言士币数额');
			$table->integer('extra_count')->nullable()->default(0)->comment('赠送言士币数额');
			$table->boolean('is_hot')->nullable()->default(false)->comment('是否是热门1是');
			$table->boolean('status')->nullable()->default(true)->comment('是否使用中1为使用中');
		});
	}


	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('recharge_amount');
	}

}
